<template>
    <el-header style="background-color: #f8f9fa; padding: 10px;">
        <div style="display: flex; justify-content: space-between; align-items: center; height: 100%;">
            <h1 style="margin: 0; color: #333;">自动填报系统🤖</h1>
            <el-button type="danger" @click="logout" style="margin-left: 20px;">登出</el-button>
        </div>
    </el-header>
</template>

<script>
export default {
    methods: {
        logout() {
            // 执行登出逻辑
            sessionStorage.clear();
            this.$router.push('/login'); // 跳转到登录页
        }
    }
}
</script>

<style scoped>
.el-header {
    border-bottom: 1px solid #e4e7ed;
    background-color: #f8f9fa; 
    width: 100%;
}
.el-button {
    border-radius: 4px; /* 圆角 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 阴影效果 */
}
</style>
